|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnl.telin.mymedia.db.util.HibernateUtil
public class HibernateUtil
Constructor Summary | |
---|---|
HibernateUtil()
|
Method Summary | |
---|---|
static void |
filterCommonLemma()
remove common lemma's from the database They have a count > doccount/2 |
static void |
filterSpecificLemma()
remove rare lemma's from the database They have a count < doccount/1000 |
static Stats |
findDocCount()
|
static InfGainVector |
findInfGainVector(java.lang.Integer id)
get infgainvector from an id |
static InfGainVector |
findInfGainVector(Lemma l)
get infgainvector from a lemma |
static Lemma |
findLemma(java.lang.String lemma)
return lemma from the database with given string |
static java.util.Iterator |
getAllDocFreq(org.hibernate.Session s)
Get all docFreq objects |
static java.util.List<Lemma> |
getAllLemma()
return all lemma's from the database |
static int |
getLemmaCount()
get the number of lemma's in the database |
static org.hibernate.Session |
getSession()
open a hibernate session |
static void |
removeAll()
remove all Lemma |
static void |
removeAllInfGain()
remove all InfGain |
static InfGainVector |
saveCODistr(InfGainVector vector)
save InfGainVector to database |
static Lemma |
saveLemma(Lemma lf)
save a lemma to the database |
static void |
shutdown()
close database |
static void |
updateDocCount(Stats stats)
Updste the document count. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HibernateUtil()
Method Detail |
---|
public static org.hibernate.Session getSession() throws org.hibernate.HibernateException
org.hibernate.HibernateException
public static void shutdown() throws org.hibernate.HibernateException
org.hibernate.HibernateException
public static java.util.List<Lemma> getAllLemma()
public static Lemma findLemma(java.lang.String lemma)
lemma
- the lemma string
public static Lemma saveLemma(Lemma lf)
lf
- The Lemma
public static Stats findDocCount()
public static void updateDocCount(Stats stats)
stats
- Stats object with doccount, stats.name = documentspublic static java.util.Iterator getAllDocFreq(org.hibernate.Session s)
an
- open hibernate session
public static void removeAll()
public static void removeAllInfGain()
public static InfGainVector saveCODistr(InfGainVector vector)
vector
- the vector
public static int getLemmaCount()
public static void filterCommonLemma()
public static void filterSpecificLemma()
public static InfGainVector findInfGainVector(Lemma l)
Lemma
-
public static InfGainVector findInfGainVector(java.lang.Integer id)
id
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |